.class public Lcom/estrongs/android/taskmanager/b/i;
.super Ljava/lang/Object;


# instance fields
.field a:Z

.field b:Z

.field public c:Ljava/lang/String;

.field public d:Ljava/lang/String;

.field public e:Ljava/lang/String;

.field public f:Ljava/lang/String;

.field public g:Ljava/lang/String;

.field public h:I

.field private i:Ljava/text/NumberFormat;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Z)V
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    const/4 v2, -0x1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-boolean v5, p0, Lcom/estrongs/android/taskmanager/b/i;->a:Z

    iput-boolean v5, p0, Lcom/estrongs/android/taskmanager/b/i;->b:Z

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/b/i;->c:Ljava/lang/String;

    invoke-static {}, Ljava/text/NumberFormat;->getInstance()Ljava/text/NumberFormat;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/b/i;->i:Ljava/text/NumberFormat;

    if-eqz p3, :cond_1

    invoke-virtual {p2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, "[\\s]+"

    invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    invoke-static {}, Lcom/estrongs/android/taskmanager/b/h;->a()I

    move-result v1

    if-eq v1, v2, :cond_2

    invoke-static {}, Lcom/estrongs/android/taskmanager/b/h;->a()I

    move-result v1

    aget-object v1, v0, v1

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/b/i;->f:Ljava/lang/String;

    :goto_0
    invoke-static {}, Lcom/estrongs/android/taskmanager/b/h;->b()I

    move-result v1

    if-eq v1, v2, :cond_3

    invoke-static {}, Lcom/estrongs/android/taskmanager/b/h;->b()I

    move-result v1

    aget-object v1, v0, v1

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/b/i;->c:Ljava/lang/String;

    :goto_1
    invoke-static {}, Lcom/estrongs/android/taskmanager/b/h;->c()I

    move-result v1

    if-eq v1, v2, :cond_4

    invoke-static {}, Lcom/estrongs/android/taskmanager/b/h;->c()I

    move-result v1

    aget-object v1, v0, v1

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/b/i;->e:Ljava/lang/String;

    :goto_2
    invoke-static {}, Lcom/estrongs/android/taskmanager/b/h;->d()I

    move-result v1

    aget-object v1, v0, v1

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/b/i;->d:Ljava/lang/String;

    invoke-static {}, Lcom/estrongs/android/taskmanager/b/h;->e()I

    move-result v1

    if-eq v1, v2, :cond_5

    invoke-static {}, Lcom/estrongs/android/taskmanager/b/h;->e()I

    move-result v1

    aget-object v1, v0, v1

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/tools/k;->a(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/estrongs/android/taskmanager/b/i;->h:I

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "%.2f"

    new-array v3, v6, [Ljava/lang/Object;

    invoke-static {}, Lcom/estrongs/android/taskmanager/b/h;->e()I

    move-result v4

    aget-object v0, v0, v4

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/tools/k;->a(Ljava/lang/String;)I

    move-result v0

    int-to-float v0, v0

    const/high16 v4, 0x4480

    div-float/2addr v0, v4

    invoke-static {v0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v0

    aput-object v0, v3, v5

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v0, "M"

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/b/i;->g:Ljava/lang/String;

    :goto_3
    invoke-direct {p0}, Lcom/estrongs/android/taskmanager/b/i;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/b/i;->c:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/b/h;->b(Ljava/lang/String;)V

    :cond_0
    invoke-direct {p0}, Lcom/estrongs/android/taskmanager/b/i;->b()Z

    move-result v0

    if-eqz v0, :cond_1

    iput-boolean v6, p0, Lcom/estrongs/android/taskmanager/b/i;->a:Z

    :cond_1
    return-void

    :cond_2
    const-string v1, ""

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/b/i;->f:Ljava/lang/String;

    goto :goto_0

    :cond_3
    const-string v1, ""

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/b/i;->c:Ljava/lang/String;

    goto :goto_1

    :cond_4
    const-string v1, ""

    iput-object v1, p0, Lcom/estrongs/android/taskmanager/b/i;->e:Ljava/lang/String;

    goto :goto_2

    :cond_5
    const-string v0, ""

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/b/i;->g:Ljava/lang/String;

    goto :goto_3
.end method

.method private a()Z
    .locals 2

    const-string v0, "zygote"

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/i;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method private b()Z
    .locals 4

    const/4 v1, 0x1

    const/4 v0, 0x0

    invoke-static {}, Lcom/estrongs/android/taskmanager/b/h;->f()Ljava/lang/String;

    move-result-object v2

    if-nez v2, :cond_2

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/i;->f:Ljava/lang/String;

    const-string v3, "app_"

    invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/i;->f:Ljava/lang/String;

    const-string v3, "system"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    move v0, v1

    goto :goto_0

    :cond_2
    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/i;->e:Ljava/lang/String;

    invoke-static {}, Lcom/estrongs/android/taskmanager/b/h;->f()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/i;->f:Ljava/lang/String;

    const-string v3, "app_"

    invoke-virtual {v2, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_3

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/b/i;->f:Ljava/lang/String;

    const-string v3, "system"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    :cond_3
    move v0, v1

    goto :goto_0
.end method


# virtual methods
.method public toString()Ljava/lang/String;
    .locals 2

    const-string v0, ";"

    const-string v0, ""

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "PsRow ( "

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-super {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ";"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "pid = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/i;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ";"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "cmd = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/i;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ";"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "ppid = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/i;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ";"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "user = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/i;->f:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ";"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "mem = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/b/i;->g:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " )"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
